package com.jy.qnbbs.controller;

import com.jy.qnbbs.feign.QnbbsProviderServiceApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ConsumerFeignController {

    @Autowired
    QnbbsProviderServiceApi qnbbsProviderServiceApi;


    @RequestMapping("/getProfilesName")
    public String getProfilesName(){

        // 调用feign,feign调用 qnbbs-provider 的api
        String profiles=qnbbsProviderServiceApi.getProfilesNameCongig();

        return profiles;
    }

}
